package com.lzw.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by 林志伟 on 2017/6/20.
 */
@Component
@ConfigurationProperties("admin.login")
public class LoginConfig {
    private String cookiekey;
    private int logintime;

    public String getCookiekey() {
        return cookiekey;
    }

    public void setCookiekey(String cookiekey) {
        this.cookiekey = cookiekey;
    }

    public int getLogintime() {
        return logintime;
    }

    public void setLogintime(int logintime) {
        this.logintime = logintime;
    }

    @Override
    public String toString() {
        return "LoginConfig{" +
                "    cookiekey='" + cookiekey + '\'' +
                ",     logintime=" + logintime +
                '}';
    }
}
